<?php
//var_dump();
class DuomaiGoodsCate extends BaseModel
{
	public $res;
	public $redis_key="";
	public function getSource()
    {
        return "duomai_goods_cate";
    }
	public function initialize()
	{
		parent::initialize();
	}

    /**
     * @return mixed获取分类列表
     */
	public function getlist(){
	    $conditions = 'is_show =1';
	    $res = $this->find(
	        array(
	            $conditions
            )
        );
	    return $res;
    }

	/**
	 * 根据订单号查找记录
	 */
	public function find_by_order_sn($order_sn){
		return $this->findFirstByOrderSn($order_sn);
	}
}
